package com.hnu.store.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;


public class Comment extends BaseEntity {

  //  评论id
  private Integer id;
  //  售单id
  private Integer saleId;
  //  用户id
  private Integer userId;
  //  交易id
  private Integer tradeId;
  //  评论时间
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date date;
  //  评论内容
  private String content;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getSaleId() {
    return saleId;
  }

  public void setSaleId(Integer saleId) {
    this.saleId = saleId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getTradeId() {
    return tradeId;
  }

  public void setTradeId(Integer tradeId) {
    this.tradeId = tradeId;
  }

  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Comment() {
  }

  public Comment(Integer id, Integer saleId, Integer userId, Integer tradeId, Date date,
      String content) {
    this.id = id;
    this.saleId = saleId;
    this.userId = userId;
    this.tradeId = tradeId;
    this.date = date;
    this.content = content;
  }

  @Override
  public String toString() {
    return "Comment{" +
        "id=" + id +
        ", saleId=" + saleId +
        ", userId=" + userId +
        ", tradeId=" + tradeId +
        ", date=" + date +
        ", content='" + content + '\'' +
        '}';
  }
}
